package 面向对象;

/**
 * @author ycc
 * @date 2024/7/3
 */
public class Person {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;
    public Person(String name) {
        this.name = name;
    }
    public void say() {
        System.out.println("hello, " + this.name);
    }

    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                '}';
    }
}
